package com.ssy.lingxi.purchase.api.enums.purchase;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
* 采购询价单查询类型枚举类
* @author wrc
* @date 2021/1/19
*/
public enum PurchaseInquiryListEnum {
    PURCHASE_INQUIRY_LIST(1, "采购需求单查询"),
    ADD_PURCHASE_INQUIRY_LIST(2, "待新增采购需求单查询"),
    EXAMINE_PURCHASE_INQUIRY_LIST1(3, "待审核采购需求单查询(一级)"),
    EXAMINE_PURCHASE_INQUIRY_LIST2(4, "待审核采购需求单查询(二级)"),
    SUBMIT_PURCHASE_INQUIRY_LIST(5, "待提交采购需求单查询"),
    //Platform_PURCHASE_INQUIRY_LIST(6, "平台后台待审核采购需求单"), 21.1.20版本去掉
    CONFIRM_QUOTED_PRICE_LIST(7, "确认报价报价查询");

    private Integer type;
    private String name;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return LanguageHolder.getName(this.getClass(), this.type);
    }

    public void setName(String name) {
        this.name = name;
    }

    PurchaseInquiryListEnum(Integer type, String name) {
        this.type = type;
        this.name = name;
    }
}
